package com.wxh.back.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2022-07-25 20:07:43
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class User {
    //id
    @ApiModelProperty(hidden = true)
    @TableId(type = IdType.ASSIGN_ID)
    private int id;
    //姓名
    private String name;
    //年龄
    private Integer age;
    //性别，0女，1男
    private Integer sex;
    //出生日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    //地址
    private String address;

}

